<!DOCTYPE html>
<html lang="zh">

<head>
    <title>Before Unload Example</title>
    <script>


        window.addEventListener('beforeunload', function (event) {
            
        });
    </script>
</head>

<body>
</body>

</html>